package com.example.demo.services;

import com.example.demo.domain.Category;
import com.example.demo.domain.Item;
import com.example.demo.domain.Product;
import com.example.demo.persistence.CategoryDao;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


public interface CatalogService {
    public List<Category> getCategoryList();

    public Category getCategory(String categoryId);

    public List<Product> getProductList();

    public Product getProduct(String productId);

    public List<Product> getProductListByCategory(String categoryId);

    public List<Product> searchProductList(String keyword);

    public List<Item> getItemListByProduct(String productId);

    public Item getItem(String itemId);

    public boolean isItemInStock(String itemId);

}
